package cn.tutu.shop.entity;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotBlank;

import cn.tutu.blockchain.base.BaseObject;

public class Express extends BaseObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3277079422584998772L;
	@NotBlank(message = "用户ID不能为空!")
	private String userId;
	@NotBlank(message = "区域不能为空!")
	private String district; // 行政区
	@NotBlank(message = "收件人不能为空!")
	private String receiver; // 收件人
	@NotBlank(message = "收件人电话不能为空!")
	@Pattern(regexp = "^1[3|4|5|7|8][0-9]\\d{4,8}$", message = "手机号格式错误")
	private String phone; // 电话
	@NotBlank(message = "详细地址不能为空!")
	private String addr; // 详细地址

	private Region region;
	// 页面展示字段方便前端展示
	private String province; // 省ID
	private String city; // 市ID

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public Region getRegion() {
		return region;
	}

	public void setRegion(Region region) {
		this.region = region;
	}

}
